import request from '@/utils/request'

// 查询业务-订单主列表
export function listOrder(query) {
  return request({
    url: '/business/ordersMain/list',
    method: 'post',
    data: query,
    params: {pageNum: query.pageNum, pageSize: query.pageSize}
  })
}

// 导出文件
export function exportExcel(data){
  return request({
    url: '/business/ordersMain/export',
    method: 'post',
    data: data
  })
}

// 展开行
export function getListByMainSid(mainSid){
  return request({
    url: '/business/ordersDetail/getListByMainSid/' + mainSid,
    method: 'get',
  })
}

// 获取未分配的订单
export function getUndistributedOrder(query){
  return request({
    url: '/business/ordersMain/getUndistributedOrder',
    method: 'get',
    params: query
  })
}


// 我的任务
export function getMyTasks(query){
  return request({
    url: '/business/ordersMain/getMyTasks',
    method: 'get',
    params: query
  })
}

// 查询我的订单超时订单个数
export function getOverdue48Count(query){
  return request({
    url: '/business/ordersMain/getOverdue48Count',
    method: 'get',
    params: query
  })
}

// 查询订单超时24小时订单个数
export function getOverdue24Count(query){
  return request({
    url: '/business/ordersMain/getOverdue24Count',
    method: 'get',
    params: query
  })
}
